<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index</title>
<script type="text/javascript">
	function toIterator(){
		var form = document.getElementById("form1");
		form.action="toIterator.do";
		form.submit();
	}
</script>
</head>
<body>
	<h1>Welcome to Struts2 and Spring.</h1>

	<form id="form1" action="sample.do">
		<input type="text" /> 
		<input type="submit" value="Go" />
		<input type="button" value="Go Iterator" onclick="toIterator()"/>
	</form>
</body>
</html>